import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../pages/home/Home.vue'
import About from '../pages/about/About.vue'

const routes = [
    {
        path: '/',
        redirect: { name: 'Home' }
    },
    {
        path: '/home',
        name: 'Home',
        component: Home
    },
    {
        path: '/about',
        name: 'Abount',
        component: About
    }
]

export default createRouter({
    history: createWebHashHistory(),
    routes
})
